﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Catan
{
    class Player
    {
        private Dictionary<ResourceType, byte> _Resources;


        public Player(byte id)
        {
            Id = id;
        }


        public byte Id
        {
            get;
            private set;
        }
        

        public Dictionary<ResourceType, byte> Resources
        {
            get
            {
                if (_Resources == null)
                {
                    Array resourceTypes = Enum.GetValues(typeof (ResourceType));

                    _Resources = new Dictionary<ResourceType, byte>(resourceTypes.Length);
                    foreach (ResourceType resource in resourceTypes)
                    {
                        _Resources[resource] = 0;
                    }
                }

                return _Resources;
            }
        }


        // 5 settlements
        // 4 cities
        // 15 roads
    }
}
